/* strspn example */
#include <stdio.h>
#include <string.h>

int main()
{
  int i;
  char strtext[] = "129th";
  char cset[] = "1234567890";

  i = strspn(strtext, cset);
  printf("The length of initial number is %d.\n", i);
  return 0;
}
